package com.tutu.commons.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Program: b2c-cloud-store
 * @Description: 轮播图片实体类
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-14 16:43
 **/
@Data
@TableName("carousel")
@ApiModel(description = "轮播图实体类")
public class Carousel implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "轮播图id")
    @TableId(value = "carousel_id", type = IdType.AUTO)
    private Integer carouselId;  //图片id


    @ApiModelProperty(value = "轮播图路径")
    @TableField("img_path")
    private String imgPath;  //图片路径

    @ApiModelProperty(value = "图片描述")
    private String describes; //图片描述


    @ApiModelProperty(value = "广告关联的商品图片")
    @TableField("product_id")
    private String productId; //广告关联的商品图片

    @ApiModelProperty(value = "图片优先级")
    private Integer priority;  //图片优先级


}
